<div class="md">
	<#include "post.ftl">
	<div class="pager bdwt bds">
		<#if prevNextPosts[1]?has_content><span class="prev">上一篇：<a class="m2a " href="/post/prev/${prevNextPosts[1].id}">${prevNextPosts[1].title?html}</a></span></#if>
	    <#if prevNextPosts[0]?has_content><span class="next">下一篇：<a class="m2a " href="/post/prev/${prevNextPosts[0].id}">${prevNextPosts[0].title?html}</a></span></#if>
    </div>
    <div id="comments" class="pager bdwt bds">
    	<ol id="commentlist">
    	<#list comments as comment>
	    	<#include "comment.ftl">
    	</#list>
    	</ol>
    	<#if post.allowComment>
		<a class="m2a" name="#comment">评论:</a>
		<div id="comm_dlg">
			<form method="post" action="#">
				<div id="author_info">
					<div class="row">
						<input type="text" tabindex="1" size="24" value="" class="textfield etag" name="author">
						<label class="small" for="author">昵称 (必填)</label>
					</div>
					<div class="row">
						<input type="text" tabindex="2" size="24" value="" class="textfield etag"  name="email">
						<label class="small" for="email">电子邮箱 (我们会为您保密) (必填)</label>
					</div>
					<div class="row">
						<input type="text" tabindex="3" size="24" value="" class="textfield etag" name="url">
						<label class="small" for="url">个人网址</label>
					</div>
				</div>
				<div class="row">
					<textarea tabindex="4" cols="50" rows="8" class="comment etag" name="comment"></textarea>
				</div>
				<div>
					<div class="submitbutton">
						<input type="button"  tabindex="5" value="发评论" class="button etag" name="submit">
						<input type="hidden" class="etag" value="${post.id}">
					</div>
				</div>
			</form>
		</div>
		</#if>
    </div>
</div>

<div style="display:none;" id="reply_dlg">
	<form method="post" action="#">
		<div id="author_info"<#if isAdmin> style="display:none;"</#if>>
			<div class="row">
				<input type="text" tabindex="1" size="24" value="<#if isAdmin>logger</#if>" class="textfield etag" name="author">
				<label class="small" for="author">昵称 (必填)</label>
			</div>
			<div class="row">
				<input type="text" tabindex="2" size="24" value="<#if isAdmin>a@163.com</#if>" class="textfield etag"  name="email">
				<label class="small" for="email">电子邮箱 (我们会为您保密) (必填)</label>
			</div>
			<div class="row">
				<input type="text" tabindex="3" size="24" value="<#if isAdmin>http://</#if>" class="textfield etag" name="url">
				<label class="small" for="url">个人网址</label>
			</div>
		</div>
		<div class="row">
			<textarea tabindex="4" cols="50" rows="8" class="comment etag" name="comment"></textarea>
		</div>
		<div>
			<div class="submitbutton">
				<input type="button"  tabindex="5" value="发表" class="button etag">
				<input type="button"  tabindex="5" value="取消" class="button etag">
			</div>
		</div>
	</form>
</div>